
public class Point {

	float x;
	float y;
	int extra;
	
	public Point(float x, float y)
	{
		this.x = x;
		this.y = y;
	}
	/**
	 * sets the x coordinate of the point
	 * @param x the x coordinate to be set
	 */
	public void setX(float x)
	{
		this.x = x;
	}
	public String toString()
	{
		return "(" + x + "," + y + ")";
	}
	/**
	 * sets the y coordinate of the point
	 * @param y the y coordinate to be set
	 */
	public void setY(float y)
	{
		this.y = y;
	}
	/**
	 * gets the x coordinate of the point
	 * @return x
	 */
	public float getX()
	{
		return x;
	}
	/**
	 * gets the y coordinate of the point
	 * @return y
	 */
	public float getY()
	{
		return y;
	}
	public void setExtra(int i)
	{
		extra = i;
	}
	public int getExtra()
	{
		return extra;
	}

}

